﻿using MiP.XmlCmd.Shell.Args;

namespace MiP.XmlCmd.Shell.Commands
{
    /// <summary>
    /// 	This is a basic implementation of <see cref = "ICommand" />. It just implements the <see cref = "SetArguments" /> method, and requires <see cref = "Execute" /> to be overidden.
    /// </summary>
    public abstract class Command : ICommand
    {
        protected Arguments Arguments
        {
            get;
            private set;
        }

        public void SetArguments(Arguments arguments)
        {
            Arguments = arguments;
        }

        public abstract void Execute();
    }
}